package com.learn.callback.level1;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: App </p>
 *
 * 老师吩咐学生做作业，学生做完，通知老师
 * {@link Teacher}类  调用  {@link Student}类的homework()方法；
 * {@link Student}类的homework()方法  调用 {@link Teacher}类的callback()方法（回调）
 */
public class App {

    public static void main(String[] args) {
        Student student = new Student();
        Teacher teacher = new Teacher(student);
        teacher.work();
    }
}
